package cn.hxth.cloud.service.commons.config;

import feign.Request;
import feign.Retryer;
import feign.auth.BasicAuthRequestInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class FeignClientConfig {
	@Bean
	public BasicAuthRequestInterceptor getBasicAuthRequestInterceptor() {
		return new BasicAuthRequestInterceptor("hxth", "hello");
	}
	@Bean
	Request.Options feignOptions() {
		return new Request.Options(/**connectTimeoutMillis**/3 * 10000, /** readTimeoutMillis **/3 * 10000);
	}
	@Bean
	Retryer feignRetryer() {
		return Retryer.NEVER_RETRY ;
	}

}
